home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 August / Macworld (1999-08).dmg / Shareware World / Info / For Developers / MADE 1.4.0 / Documentation / Upgrading Information < prev   
Text File  |  1999-05-26  |  2KB  |  32 lines

  1. MADE version 1.4.0
  2.  
  3. Upgrading Information
  4.  
  5. The following instructions assume that the only files you have changed are User Functions.c and Essential Settings.h. They will allow you to keep your current source code while upgrading to the latest version of MADE.
  6.  
  7. Version 1.2.0 to 1.4.0
  8.  
  9. For all code :
  10.  
  11. • Be aware that error strings are now stored in an 'Err2' resource, with more information.
  12. • Rename Essential Settings.h to User Settings.h.
  13. • Move your MBAR and MENU resources to a new resource file called User Resources.rsrc, and add it to the project.
  14. • Replace EnableMenuItem with SetMenuItemEnabled in your code (due to name clash).
  15. • Remove all old Essential… files from your project and project folder.
  16. • Copy User Extra Settings.h from MADE 1.4.0 to your project folder.
  17. • Add all in the Essentials folder of MADE 1.4.0 to your project.
  18.  
  19. For registered code only (see Essential Extras.h) :
  20.  
  21. • Move your Use_Internet_Config setting to User Extra Settings.h.
  22. • Change the parameters for any use you have made of FindChars.
  23.  
  24. Version 1.0.0, 1.0.1 or 1.1.0 to 1.2.0
  25.  
  26. • Copy all the new source and header files (excluding User Functions.c) into over your previous versions.
  27. • Change the settings in the new Essential Settings.h as you require.
  28. • Change MyHandleKeyDown and MyHandleMouseDown in your code to take an EventRecord* event as the second parameter instead of modifiers. You can still access the modifiers using event->modifiers.
  29. • Add functions void MySuspendApplication() and void MyResumeApplication(). If you don't want to do anything for these, leave them blank, although often you'll want to activate/deactivate the front window if the doesActivateonFGSwitch SIZE flag is on (in the Target's settings).
  30. • Add a void MyOpenApplication() function to respond to the Open Application AppleEvent if you want (see relevant setting).
  31. • Change the ID of the standard error ALRT from 128 to 32766. You can also change the ID of the standard error DITL from 128 to 32766, and update the ALRT template accordingly. This means all the IDs for MADE dialogs are out of the way of normal ResEdit numbering.
  32. • Change MyInitialiseApplication and MyReceiveDrag in User Functions.c to return an Error. Add return 0 if you don't want to do any error reporting.